package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 拣货单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-07
 */
@Data
@ApiModel(value="PickingVO对象", description="拣货单")
public class PickingVO implements Serializable {


    @ApiModelProperty(value = "拣货单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "客户编码")
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "出货单编号")
    private String deliveryCode;

    @ApiModelProperty(value = "来源单号")
    private String sourceCode;

    @ApiModelProperty(value = "单据类型")
    private String type;

    @ApiModelProperty(value = "单据类型")
    private String typeText;

    @ApiModelProperty(value = "计划数量")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "拣货数量")
    private BigDecimal pickingQuantity;

    @ApiModelProperty(value = "缺货数量")
    private BigDecimal stockoutQuantity;

    @ApiModelProperty(value = "待拣数量")
    private BigDecimal notPickingQuantity;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "修改人")
    private String modifiedBy;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "拣货单明细")
    private List<PickingItemVO> pickingItemVOList;

    @ApiModelProperty(value = "拣货明细关联确认单列表")
    private List<PickingItemWithRegisterVO> pickingItemWithRegisterVOList;

    @ApiModelProperty(value = "下发状态:0未下发，1已下发；")
    private Integer issue;

    @ApiModelProperty(value = "所属机构名称")
    private String groupName;

    @ApiModelProperty(value = "波次单号")
    private String wavePickingCode;

    @ApiModelProperty(value = "商品种类数量")
    private BigDecimal goodsSortQuantity;

    /**
     * 物流公司编码(SF=顺丰、EMS=标准快递、EYB=经济快件、ZJS=宅急送、YTO=圆通 、ZTO=中 通(ZTO)、HTKY=百世汇通、UC=优速、STO=申通、TTKDEX=天天快递、QFKD=全峰、FAST=快捷 、POSTB=邮政小包、 GTO=国通、YUNDA=韵达、JD=京东配送、DD=当当宅配、AMAZON=亚马逊物流、 OTHER=其他)
     */
    @ApiModelProperty(value = "物流公司编码")
    private String logisticsCode;

    @ApiModelProperty(value = "物流公司名称")
    private String logisticsName;

    @ApiModelProperty(value = "波次临时标识")
    private String temporaryCode;

    @ApiModelProperty(value = "订单标识 1-单品单件 2-单品多件 3-多品 4-爆品 5-按单")
    private String orderTag;

    @ApiModelProperty(value = "任务数量")
    private BigDecimal taskQuantity;

    @ApiModelProperty(value = "订单数量")
    private BigDecimal orderQuantity;

    @ApiModelProperty(value = "任务code")
    private String taskCode;

    @ApiModelProperty(value = "作业人姓名")
    private String operatorName;

    @ApiModelProperty(value = "承运商编码")
    private String carrierCode;

    @ApiModelProperty(value = "承运商名称")
    private String carrierName;

    @ApiModelProperty(value = "是否预打包拣货单:0否1是")
    private Integer prepackaged;

    @ApiModelProperty(value = "库位编码")
    private String locationSerial;

    @ApiModelProperty(value = "待拣包裹数")
    private Integer planPackQuantity;

    @ApiModelProperty(value = "出库单下发状态:0未下发，1已下发；")
    private Integer outboundIsIssue;

    @ApiModelProperty(value = "预打包单号")
    private String prepackagedCode;

    @ApiModelProperty(value = "包裹数量")
    private Integer packageQuantity;

    /**
     * 是否预打包单生成的拣货单:0否1是  用来区分是预打包生成拣货单还是 通过订单生成拣货单
     */
    @ApiModelProperty(value = "是否预打包单生成的拣货单:0否1是")
    private Integer prepackagedGenerate;

    /**
     * 拣货完成时间
     */
    @ApiModelProperty(value = "拣货完成时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pickingCompletionTime;

    /**
     * 拣货单打印次数
     */
    @ApiModelProperty(value = "拣货单打印次数")
    private Integer pickingPrintCount;

    /**
     * 拣货单（序号）打印次数
     */
    @ApiModelProperty(value = "拣货单（序号）打印次数")
    private Integer pickingSortPrintCount;

    /**
     * 面单打印次数
     */
    @ApiModelProperty(value = "面单打印次数")
    private Integer waybillPrintCount;

    /**
     * 订单数量
     */
    @ApiModelProperty(value = "订单数量")
    private Integer deliveryNum;

    @ApiModelProperty(value = "是否复核:0不复核，1复核")
    private Integer review;

    public interface Save{}
    public interface Update{}

}
